package com.lanbu.system.service.impl;

import java.util.List;

import com.lanbu.system.domain.SysKnowledgeBase;
import com.lanbu.system.mapper.SysKnowledgeBaseMapper;
import com.lanbu.system.service.ISysKnowledgeBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 问题反馈Service业务层处理
 *
 * @author lanbu
 * @date 2024-10-17
 */
@Service
public class SysKnowledgeBaseServiceImpl implements ISysKnowledgeBaseService
{
    @Autowired
    private SysKnowledgeBaseMapper sysKnowledgeBaseMapper;

    @Override
    public SysKnowledgeBase selectSysKnowledgeBaseByDatasetId(String datasetId)
    {
        return sysKnowledgeBaseMapper.selectSysKnowledgeBaseByDatasetId(datasetId);
    }

    @Override
    public List<SysKnowledgeBase> selectSysKnowledgeBaseList(SysKnowledgeBase sysKnowledgeBase)
    {
        return sysKnowledgeBaseMapper.selectSysKnowledgeBaseList(sysKnowledgeBase);
    }

    @Override
    public int insertSysKnowledgeBase(SysKnowledgeBase sysKnowledgeBase)
    {
        return sysKnowledgeBaseMapper.insertSysKnowledgeBase(sysKnowledgeBase);
    }

    @Override
    public int updateSysKnowledgeBase(SysKnowledgeBase sysKnowledgeBase)
    {
        return sysKnowledgeBaseMapper.updateSysKnowledgeBase(sysKnowledgeBase);
    }

    @Override
    public int deleteSysKnowledgeBaseByDatasetIds(String[] datasetIds)
    {
        return sysKnowledgeBaseMapper.deleteSysKnowledgeBaseByDatasetIds(datasetIds);
    }

    @Override
    public int deleteSysKnowledgeBaseByDatasetId(String datasetId)
    {
        return sysKnowledgeBaseMapper.deleteSysKnowledgeBaseByDatasetId(datasetId);
    }
}
